<template>
  <div class="container">
    <img class="banner" src="@/assets/user-banner.png" alt="" />
    <div class="wrap">
      <div class="title">关于我们</div>
    </div>
    <div class="col1">
      <div class="wrap">
        <div class="item">
          <div class="content">
            <div class="text">
              <strong>企业简介</strong>
              <span></span>
            </div>
            <p v-html="info.aboutus"></p>
          </div>
          <img :src="info.aboutus_img" alt="" />
        </div>
      </div>
    </div>
    <div class="col2">
      <div class="wrap">
        <div class="item">
          <div class="content">
            <div class="upper">
              <img :src="info.development_img" alt="" />
              <div class="text">
                <strong>发展历程</strong>
                <span></span>
              </div>
            </div>
            <p v-html="info.development"></p>
          </div>
        </div>
      </div>
    </div>
    <div class="col3">
      <div class="wrap">
        <div class="item">
          <div class="content">
            <div class="text">
              <strong>企业荣誉</strong>
              <span></span>
            </div>
            <p v-html="info.honor"></p>
          </div>
          <img :src="info.honor_img" alt="" />
        </div>
      </div>
    </div>
  </div>
</template>
  
 <script>
export default {
  name: "NavBar",
  data() {
    return {
      info: {},
    };
  },
  mounted() {
    this.getList();
  },
  methods: {
    getList() {
      this.$post("/index/about").then((res) => {
        this.info = res.data;
      });
    },
  },
};
</script>
  
<style scoped lang="scss">
.banner {
  height: 300px;
}
.title {
  font-size: 58px;
  font-weight: bold;
  text-align: center;
  margin: 30px 0;
}
.col1,
.col3 {
  padding: 60px 0;

  .item {
    display: flex;
    justify-content: space-between;
    img {
      width: 50%;
      max-width: 550px;
    }
  }
  .content {
    width: 50%;
    max-width: 540px;
    p {
      font-size: 16px;
      line-height: 2.5;
    }
    .text {
      position: relative;
      padding-bottom: 30px;
      margin-bottom: 20px;
      &::before {
        content: "";
        width: 50px;
        height: 5px;
        background: #b6864a;
        position: absolute;
        left: 0;
        bottom: 0;
      }
      strong {
        font-size: 36px;
        display: block;
        margin-bottom: 10px;
      }
      span {
        font-size: 24px;
        color: #666;
      }
    }
  }
}
.col2 {
  padding: 60px 0;
  background: #f9f9f9;
  .upper {
    display: flex;
    margin-bottom: 20px;
    justify-content: space-between;
    img {
      width: 50%;
      max-width: 550px;
    }
    .text {
      position: relative;
      padding-bottom: 30px;
      text-align: right;
      &::before {
        content: "";
        width: 50px;
        height: 5px;
        background: #b6864a;
        position: absolute;
        right: 0;
        bottom: 0;
      }
      strong {
        font-size: 36px;
        display: block;
        margin-bottom: 10px;
      }
      span {
        font-size: 24px;
        color: #666;
      }
    }
  }
  .content {
    p {
      font-size: 16px;
      line-height: 2.5;
    }
  }
}
@media screen and (max-width: 768px) {
  .title {
    font-size: 24px;
  }
  .col1,
  .col3 {
    padding: 20px 0;

    .item {
      display: block;
      img {
        width: 100%;
      }
    }
  }
  .col1 .content,
  .col3 .content {
    width: 100%;
    max-width: 1000px;
  }
  .col1 .content .text strong,
  .col3 .content .text strong {
    font-size: 24px;
    margin-bottom: 0px;
  }
  .col1 .content .text span,
  .col3 .content .text span {
    font-size: 16px;
  }
  .col1 .content .text,
  .col3 .content .text {
    padding-bottom: 20px;
  }
  .col2 {
    padding: 30px 0;
  }
  .col2 .upper .text strong {
    font-size: 24px;
    margin-bottom: 0px;
  }
  .col2 .upper .text span {
    font-size: 16px;
  }
}
</style>
  